<?php

class feed_Component_Block_Form_Music extends Phpfox_Component{
	public function process(){

              $aRows=Phpfox::getService("bible.category")->getAll();
            foreach($aRows as $iKey=>$aRow)
            {
                $aRows[$iKey]['book']=phpfox::getService("bible.book")->getBook_Category($aRow['category_id']);
            }
              $oValidator = Phpfox::getLib('validator')->set(array(
				'sFormName' => 'js_music_form',
				'aParams' => array(),
			)
		);

		$this->template()->assign(
                array(
                    'iUploadLimit' => Phpfox::getLib('file')->getLimit(Phpfox::getUserParam('music.music_max_file_size')),
                    'sCategories' => Phpfox::getService('video.category')->get(),
                    'sSites' => Phpfox::getService('video.grab')->getSites(),
                    'sCreateJs' => $oValidator->createJS(),
                    'aRows' => $aRows,
                    'sGetJsForm' => $oValidator->getJsForm(false),
                )
            );
	}
}